<?php

namespace App\Http\Model\Admin;

use Illuminate\Database\Eloquent\Model;

class Classify extends Model
{
    //
    /**
     * 关联到模型的数据表
     *
     * @var string
     */
    protected $table = 'classify';

    public $primaryKey = 'c_id';

    public $timestamps = false;

    /**
     * 标签和分类关联
     *
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     */
    public function tag_class()
    {
        return $this->hasOne('App\Http\Model\tag');
    }
}
